/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Monitor.Model
{

    /// <summary>
    ///  describedAlarm
    /// </summary>
    public class DescribedAlarm
    {

        ///<summary>
        /// 计算单位
        ///</summary>
        public string CalculateUnit{ get; set; }
        ///<summary>
        /// 统计方法：平均值&#x3D;avg、最大值&#x3D;max、最小值&#x3D;min
        ///</summary>
        public string Calculation{ get; set; }
        ///<summary>
        /// 创建时间
        ///</summary>
        public DateTime? CreateTime{ get; set; }
        ///<summary>
        /// 降采样方法
        ///</summary>
        public string DownSample{ get; set; }
        ///<summary>
        /// 是否启用
        ///</summary>
        public long? Enabled{ get; set; }
        ///<summary>
        /// 报警规则ID
        ///</summary>
        public string Id{ get; set; }
        ///<summary>
        /// 监控项
        ///</summary>
        public string Metric{ get; set; }
        ///<summary>
        /// 监控项名称
        ///</summary>
        public string MetricName{ get; set; }
        ///<summary>
        /// NoticeLevel
        ///</summary>
        public NoticeLevel NoticeLevel{ get; set; }
        ///<summary>
        /// 告警周期
        ///</summary>
        public long? NoticePeriod{ get; set; }
        ///<summary>
        /// gt, gte, lt, lte, eq, ne
        ///</summary>
        public string Operation{ get; set; }
        ///<summary>
        /// 统计周期（单位：分钟）
        ///</summary>
        public long? Period{ get; set; }
        ///<summary>
        /// 地域信息
        ///</summary>
        public string Region{ get; set; }
        ///<summary>
        /// 资源id
        ///</summary>
        public string ResourceId{ get; set; }
        ///<summary>
        /// 规则名称
        ///</summary>
        public string RuleName{ get; set; }
        ///<summary>
        /// 产品线编码
        ///</summary>
        public string ServiceCode{ get; set; }
        ///<summary>
        /// 监控项状态：1正常，2告警，4数据不足
        ///</summary>
        public long? Status{ get; set; }
        ///<summary>
        /// 标签
        ///</summary>
        public Dictionary<String,string> Tags{ get; set; }
        ///<summary>
        /// 告警阈值
        ///</summary>
        public double? Threshold{ get; set; }
        ///<summary>
        /// 告警次数
        ///</summary>
        public long? Times{ get; set; }
        ///<summary>
        /// 回调content
        ///</summary>
        public string WebHookContent{ get; set; }
        ///<summary>
        /// webHook协议
        ///</summary>
        public string WebHookProtocol{ get; set; }
        ///<summary>
        /// 回调secret，用户请求签名，防伪造
        ///</summary>
        public string WebHookSecret{ get; set; }
        ///<summary>
        /// 回调url
        ///</summary>
        public string WebHookUrl{ get; set; }
    }
}
